import { defineStore } from "pinia";
import { productType } from "../types/product";

interface productListType {
	productList: productType[],index:number;
}

export const useProductStore = defineStore("product", {
	state: (): productListType => {
		return {
			productList: [
				{
					name: "",
					label: [],
					maxMoney: "",
					interest: "",
					maxMonth: "",
					institution: "",
					repay: "",
					useObject: "",
					introduct: "",
					feature: "",
					condition: "",
					online: false,
				},
            ],
            index:-1
		};
	},
});
